package com.jiangyao.model.dto;

import com.jiangyao.model.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.bytebuddy.implementation.bind.annotation.Empty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "短信发送Dto")
public class CodeDto {

    public interface Send {

    }

    @ApiModelProperty("短信类型 1-注册时验证码发送 2-登陆时验证码发送")
    @NotNull(message = "短信类型不能为空", groups = {Send.class})
    private Integer type;

    @ApiModelProperty("用户手机号码")
    @NotNull(message = "用户手机号码不能为空", groups = {Send.class})
    @NotEmpty(message = "用户手机号码不能为空", groups = {Send.class})
    private String userPhone;
}
